/**
 * Copyright &copy; 2013-2018 青岛数码人网络科技有限公司   All rights reserved.
 */
package cn.net.ecode.elec.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import cn.net.ecode.common.persistence.DataEntity;

/**
 * 代理企业-电力交易案例Entity
 * @author xiaodunshan
 * @version 2019-09-28
 */
public class ElecAgencyDealDtl extends DataEntity<ElecAgencyDealDtl> {
	
	private static final long serialVersionUID = 1L;
	private String sysId;		// 主表id
	private String caseImg;		// 案例图片
	private String caseName;		// 案例名称
	private Date caseDate;		// 案例时间
	private String caseIntro;		// 案例简介
	
	public ElecAgencyDealDtl() {
		super();
	}

	public ElecAgencyDealDtl(String id){
		super();
		this.id = id;
	}

	@Length(min=0, max=64, message="主表id长度不能超过 64 个字符")
	public String getSysId() {
		return sysId;
	}

	public void setSysId(String sysId) {
		this.sysId = sysId;
	}
	
	@Length(min=0, max=100, message="案例图片长度不能超过 100 个字符")
	public String getCaseImg() {
		return caseImg;
	}

	public void setCaseImg(String caseImg) {
		this.caseImg = caseImg;
	}
	
	@Length(min=0, max=64, message="案例名称长度不能超过 64 个字符")
	public String getCaseName() {
		return caseName;
	}

	public void setCaseName(String caseName) {
		this.caseName = caseName;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd")
	public Date getCaseDate() {
		return caseDate;
	}

	public void setCaseDate(Date caseDate) {
		this.caseDate = caseDate;
	}
	
	@Length(min=0, max=500, message="案例简介长度不能超过 500 个字符")
	public String getCaseIntro() {
		return caseIntro;
	}

	public void setCaseIntro(String caseIntro) {
		this.caseIntro = caseIntro;
	}
	
}